#include <iostream>
#include <vector>

using namespace std;
class Solution
{
public:
    string str = "aeiouAEIOU";
    bool halvesAreAlike(string s)
    {
        int n = s.size() / 2;
        int i = 0, countl = 0, countr = 0;
        for (; i < n; ++i)
            if (string::npos != str.find(s[i]))
                countl++;
        n *= 2;
        for (; i < n; ++i)
            if (string::npos != str.find(s[i]))
                countr++;
        return countl == countr;
    }
};
int main()
{

    system("pause");
    return 0;
}
